#ifndef BLOCKING_QUEUE_H
#define BLOCKING_QUEUE_H

#include"queue.h"
#include<pthread.h>
#include<stdlib.h>

typedef struct bqueue{
  pthread_mutex_t* l;
  queue* q;

}bqueue;

int bqueue_init(bqueue*);
int bqueue_enqueue(bqueue*, void*);
void* bqueue_dequeue(bqueue*);

#endif
